package com.yc.cloud.admin.config;

import com.yc.cloud.common.swagger.config.BaseSwaggerConfig;
import com.yc.cloud.common.swagger.config.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;

/**
 * Swagger API文档相关配置
 */
@Configuration
@OpenAPIDefinition
public class SwaggerConfig extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.yc.cloud.admin.controller")
                .title("管理后台")
                .description("管理后台相关接口文档")
                .contactName("Yancy")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}